<?php 
include '../../../php/conn.php'; 
if ($con) {
	if ($_POST) {
		
		$STid= $_POST['STid'];
 
		$masql = "DELETE FROM `subjectstable` WHERE STid=$STid"; 
		$msy=mysql_query($masql); 
		if ($msy) {
			
			echo '{"status":"200"}';
		} else {
			//sql语句错误
			echo '{"status":"501"}';
		}
	 
	}  
	
		if ($_GET) { 
		$STid= $_GET['STid']; 
		$masql = "DELETE FROM `subjectstable` WHERE STid=$STid"; 
		$msy=mysql_query($masql); 
		if ($msy) {
			echo '{"status":"200"}';
		} else {
			//sql语句错误
			echo '{"status":"501"}';
		}
	 
	}  
}
//关闭数据库
mysql_close($con);
?>